package ch1;

import java.util.Scanner;

public class Zuoye03044 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入你要购买的钢管长度：");
        double a = scan.nextDouble();
        int b=(int)a/3;
        if (a % 3 != 0) {
            System.out.println("您需要购买" + (b + 1) + "根钢管");
        } else {
            System.out.println("您需要购买" + b + "根钢管");
        }
    }
}
